# -*- coding: utf-8 -*-
import requests
from requests.structures import CaseInsensitiveDict
import time

# URL和查询参数
url = "https://www.pin135.com/member-service/v2/authenticate"
params = {
    "locale": "en_US",
    "_": str(int(time.time() * 1000)),
    "withCredentials": "true"
}

# 创建头信息字典
headers = {
    "Host": "www.pin135.com",
    "Sec-Ch-Ua-Platform": "Windows",
    "Sec-Ch-Ua": 'Chromium";v="134", "Not:A-Brand";v="24", "Google Chrome";v="134"',
    "Sec-Ch-Ua-Mobile": "?0",
    "X-Trust-Client": "false",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
    "Accept": "application/json, text/plain, */*",
    "Origin": "https://www.pin135.com",
    "Sec-Fetch-Site": "same-origin",
    "Sec-Fetch-Mode": "cors",
    "Sec-Fetch-Dest": "empty",
    "Referer": "https://www.pin135.com",
    "Priority": "u=1, i"
}
# 请求体数据
data = {
    "captcha": "",
    "captchaToken": "",
    "loginId": "pangchaojie",
    "password": "plj3ytovvt25"
}

# 发送POST请求
response = requests.post(url, params=params, headers=headers, data=data)
jdata = response.json()
# 打印响应内容
print(response.status_code)
print(jdata)